package com.ceadeal.admin.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 文章分类
 *
 * @author Westin Yang
 * @date 2017-04-02 21:29:57
 */
@Entity
@Table(name = "cdl_article_category")
public class ArticleCategory extends BaseEntity {

    /** 上级分类ID */
    @Column
    private Long parentId;

    /** 分类名称 */
    @Column(nullable = false)
    private String name;

    /** 分类描述 */
    @Column
    private String profile;

    /** 分类级别 */
    @Column(nullable = false)
    private int level;

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getProfile() {
        return profile;
    }

    public void setProfile(String profile) {
        this.profile = profile;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }
}
